<? 
require_once "tempPasswords.php";
      
function getConnection()
{
        global $dbPassword;
        $mysql = new mysqli('localhost', 'plotkinm', 'FaceBooK', 'plotkinm_db');
        if($mysql->connect_error)
                die('Connection error: '.$mysql->connect_error);
        return $mysql;
}
function contactBase()
{
        $conn = getConnection();
        $results = $conn->query('SELECT id, name, abbrev FROM `states` ');
        $conn->close();
        return $results;
}

?>

